#include "rasyncrunner.h"

void RAsyncRunner::RAsyncRunner(Callback callbackFunc,
                             A& para1, B& para2,
                             QObject *parent):
    QThread(parent), m_cb(callbackFunc),
    m_para1(para1), m_para2(para2), m_result(false)
{
}

C RAsyncRunner::result() const {
    return m_result;
}

void RAsyncRunner::run() {
    m_result = m_cb(m_para1, m_para2);
}
